﻿using FluentValidation;
using Turquoise.Entities.Complex.UserModels;
using Turquoise.Globalization;

namespace Turquoise.Validation.FluentValidation.UserValidation.Rules
{
    public class ForgotPasswordRules : AbstractValidator<UpdateModel>
    {
        public ForgotPasswordRules()
        {
            RuleFor(p => p.Email).NotEmpty().WithMessage(Resources.EmailNotEmpty);
            RuleFor(p => p.Email).EmailAddress().WithMessage(Resources.EmailInValid);
        }
    }
}
